package cn.kelvin.one;

public class MyLong {
	long value;
	public MyLong(long value) {
		this.value = value;
	}
	
	public boolean equals(Object obj){
		if(obj instanceof Long || obj instanceof Integer ||
				obj instanceof Short || obj instanceof Byte){
			return value == (Long.valueOf(String.valueOf(obj))).longValue();
		}
		return false;
	}
}
